{template header}
<h4 style="padding-left:10px;;">赛事列表 <i class="icon-search"></i></h4>
<p>活动链接地址：http://irun.hupu.com/show/matchInfo?match_id=ID （ID替换为赛事ID）</p>
<a class="btn" href="?c=admin&a=matchInfo">新建</a>
<div class="bs-docs-example pt-20" style="clear:both;">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>#</th>
                <th>赛事名称</th>
                <th>赛事时间</th>
                <th>已报名</th>
                <th>状态</th>
                <th>管理</th>
            </tr>
        </thead>
        <tbody>
            {loop $matchList $k $v}
            <tr>
                <td>{$v['match_id']}</td>
                <td>{$v['name']}</td>
                <td>{eval echo date('Y-m-d',$v['stime'])} - {eval echo date('Y-m-d',$v['etime'])}</td>
                <td>
                  {if $v['match_type']==0 || $v['match_type']==2}{$v['user_count']}人{/if}
                  {if $v['match_type']==1 || $v['match_type']==2}/{$v['group_count']}群{/if}
                </td>
                <td>{eval echo $matchStatus[$v['status']]}</td>
                <td>
                    <a href="?c=admin&a=matchInfo&type=edit&match_id={$v['match_id']}">编辑</a>
                    <a href="?c=admin&a=matchStatistics&match_id={$v['match_id']}">统计</a>
                </td>
            </tr>
            {/loop}
        </tbody>
    </table>
</div>

<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}